package com.gbiac.modules.monitor.service;

import com.gbiac.modules.monitor.entity.SeatFaceLogin;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 席位人脸登录
 * @Author: jeecg-boot
 * @Date:   2024-12-03
 * @Version: V1.0
 */
public interface ISeatFaceLoginService extends IService<SeatFaceLogin> {

    /**
     * 开始人脸登录
     * @param seatId
     */
    void startLogin(String seatId);

    /**
     * 清空登录信息
     * @param seatId
     */
    void clearLogin(String seatId, String userId);

    /**
     * 人脸登录结果回调
     *
     * @param seatId
     * @param userId
     * @return
     */
    boolean loginCallback(String seatId, String userId);

    /**
     * 获取人脸登录结果
     * @param seatId
     * @return
     */
    SeatFaceLogin getLoginResult(String seatId);
}
